package com.qubuyer.repository.entitys

import java.io.Serializable

class HomeCategoryEntity : Serializable {
    //分类ID
    var id = 0

    //分类名
    var name: String? = null

    //分类图片
    var ico: String? = null
    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false

        other as HomeCategoryEntity

        if (id != other.id) return false
        if (name != other.name) return false
        if (ico != other.ico) return false

        return true
    }

    override fun hashCode(): Int {
        var result = id
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (ico?.hashCode() ?: 0)
        return result
    }
}